package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * ForumSpecialColumnEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_special_column", schema = "yzj_forum")
public class ForumSpecialColumnEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableId("id")
  private Integer id;

  /** 专栏创建时间 */
  @TableField("createTime")
  private Date createTime;

  /** 是否启用 */
  @TableField("delete")
  private Boolean delete;

  /** 专栏名称 */
  @TableField("name")
  private String name;

  /** 专栏创建者 */
  @TableField("username")
  private String username;

  @Override
  public final Class entityClass() {
    return ForumSpecialColumnEntity.class;
  }
}
